R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

* Project '~/Library/CloudStorage/OneDrive-Persönlich/Projects/IssueInvestment/IssueInvestmentReplicationRData' loaded. [renv 0.15.4]
> ############################## REPLICATION DATA AND FILES #############################################
> ### KEEPING TABS THROUGH COLLABORATION? SHARING MINISTERIAL RESPONSIBILITY IN COALITION GOVERNMENTS ###
> ################################# K. JONATHAN KLÜSER ##################################################
> #################################### 2022-04-24 #######################################################
> 
> renv::restore(prompt = FALSE)
* The library is already synchronized with the lockfile.
> 
> # The correct version of all required packages are intalled via RENV from the provided lockfile.
> # ATTENTION: The analysis has been carried out with the following versions
> #[1] forcats_0.5.1      stringr_1.4.0      dplyr_1.0.8        purrr_0.3.4        readr_2.1.1        tidyr_1.2.0       
> #[7] tibble_3.1.6       ggplot2_3.3.5      tidyverse_1.3.1    metR_0.5.0         xtable_1.8-4       vtable_1.3.3      
> #[13] kableExtra_1.3.4   interactions_1.1.5 betareg_3.1-4      stargazer_5.2.2    lmtest_0.9-39      zoo_1.8-9         
> #[19] sandwich_3.0-1     haven_2.4.3        stringdist_0.9.8
> 
> # List of packages
> list.of.packages <- c("stringdist","haven","sandwich","lmtest", "stargazer",
+                       "betareg","interactions","vtable",
+                       "xtable","metR","tidyverse")
> 
> # Load packages
> ifelse(all(unlist(lapply(list.of.packages, require, character.only = TRUE))),
+        paste("All required packages loaded"),
+        ("Not all required packages loaded"))
Lade nötiges Paket: stringdist
Lade nötiges Paket: haven
Lade nötiges Paket: sandwich
Lade nötiges Paket: lmtest
Lade nötiges Paket: zoo

Attache Paket: ‘zoo’

Die folgenden Objekte sind maskiert von ‘package:base’:

    as.Date, as.Date.numeric

Lade nötiges Paket: stargazer

Please cite as: 

 Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables.
 R package version 5.2.2. https://CRAN.R-project.org/package=stargazer 

Lade nötiges Paket: betareg
Lade nötiges Paket: interactions
Lade nötiges Paket: vtable
Lade nötiges Paket: kableExtra
Lade nötiges Paket: xtable
Lade nötiges Paket: metR
Lade nötiges Paket: tidyverse
Registered S3 methods overwritten by 'broom':
  method            from  
  tidy.glht         jtools
  tidy.summary.glht jtools
── Attaching packages ────────────────────────────────────────────────────────────────────────────────── tidyverse 1.3.1 ──
✔ ggplot2 3.3.6     ✔ purrr   0.3.4
✔ tibble  3.1.7     ✔ dplyr   1.0.8
✔ tidyr   1.2.0     ✔ stringr 1.4.0
✔ readr   2.1.1     ✔ forcats 0.5.1
── Conflicts ───────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
✖ purrr::cross()      masks metR::cross()
✖ tidyr::extract()    masks stringdist::extract()
✖ dplyr::filter()     masks stats::filter()
✖ dplyr::group_rows() masks kableExtra::group_rows()
✖ dplyr::lag()        masks stats::lag()
[1] "All required packages loaded"
> 
> # Default warn level
> defaultW <- getOption("warn")
> 
> # Some helper functions
> str_similarity <- function(org, cab){
+   ord <- str_to_lower(org, locale = "dk")
+   cab <- str_to_lower(cab, locale = "dk")
+   
+   cab <- str_replace_all(cab, "(?<=\\w)minister|minister(?=\\s)", "ministeriet")
+   
+   return(stringdist(org, cab, method = "lv"))
+ }
> 
> inflate <- function(y, n){
+   return(n**(-1) * (y * (n - 1) + 0.5))
+ }
> 
> summary_cl <- function(..., type="text", out=NULL, cluster = ~ country,
+                        order=NULL, dep.var.labels=NULL, covariate.labels=NULL){
+   
+   ses <- lapply(list(...), function(x) {
+     if (is.null(cluster)) {
+       cluster <- x$model$country
+     }
+     sqrt(diag(vcovCL(x, cluster = cluster)))
+   })
+   stargazer(..., type=type, out=out, se = ses,
+             order = order, dep.var.labels = dep.var.labels, covariate.labels = covariate.labels)
+ }
> 
> get_cabinet_data <- function(data) data %>% group_by(cabinet) %>% distinct(party)
> 
> create_complete_data <- function(country, cabinet_data, cap_codes){
+   data <- list()
+   for (cabinet in unique(cabinet_data$cabinet)) {
+     parties <- pull(cabinet_data[cabinet_data$cabinet == cabinet, "party"])
+     party_combinations <- t(combn(parties, 2))
+     party_combinations <- tibble(country = country,
+                                  cabinet = cabinet,
+                                  party_x = party_combinations[, 1],
+                                  party_y = party_combinations[, 2])
+     data <- c(data, list(party_combinations))
+   }
+   data %>% reduce(bind_rows) %>% expand_grid(national_minor = cap_codes)
+ }
> 
> sum_na <- function(x, y){
+   x <- ifelse(is.na(x), 0, x)
+   y <- ifelse(is.na(y), 0, y)
+   x + y
+ }
> 
> # DATA PREPARATION
> source("01_data_preparation.R")
`summarise()` has grouped output by 'cabinet'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'party'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'party'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'party'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'country', 'year', 'party', 'cluster'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'national_minor'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'national_minor'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'cabinet', 'national_minor'. You can override using the `.groups` argument.
> 
> # REGRESSION ANALYSIS
> source("02_regression_analysis.R")
> 
> # FIGURES
> source("03_figures.R")
`summarise()` has grouped output by 'cabinet'. You can override using the `.groups` argument.
> 
> # TABLES
> source("04_tables.R")

========================================================================
                                              Dependent variable:       
                                        --------------------------------
                                                   Sharedness           
                                           (1)        (2)        (3)    
------------------------------------------------------------------------
Ministries Dyad                         -1.016***  -1.481***  -1.481*** 
                                         (0.040)    (0.125)    (0.119)  
                                                                        
Ministries Difference                    0.523***    0.031      0.030   
                                         (0.177)    (0.346)    (0.329)  
                                                                        
Ministries Difference * Ministries Dyad -2.292***  -1.515***  -1.517*** 
                                         (0.284)    (0.562)    (0.534)  
                                                                        
Issue Salience                           7.173***   5.088***   2.540*** 
                                         (2.174)    (0.883)    (0.928)  
                                                                        
Policy Conflict                                      0.010      -0.029  
                                                    (0.132)    (0.141)  
                                                                        
Policy Conflict * Issue Salience                               2.848**  
                                                               (1.120)  
                                                                        
Denmark                                 -0.363***  -0.349***  -0.345*** 
                                         (0.018)    (0.040)    (0.039)  
                                                                        
Netherlands                             -1.321***  -1.304***  -1.307*** 
                                         (0.008)    (0.028)    (0.028)  
                                                                        
Constant                                 0.559***   0.945***   0.981*** 
                                         (0.015)    (0.049)    (0.054)  
                                                                        
------------------------------------------------------------------------
Observations                              3,919      2,681      2,681   
Log Likelihood                          -1,842.227 -1,305.862 -1,305.268
Akaike Inf. Crit.                       3,698.454  2,627.724  2,628.536 
========================================================================
Note:                                        *p<0.1; **p<0.05; ***p<0.01

% Table created by stargazer v.5.2.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Di, Mai 31, 2022 - 10:58:34
\begin{table}[!htbp] \centering 
  \caption{} 
  \label{} 
\begin{tabular}{@{\extracolsep{5pt}}lccc} 
\\[-1.8ex]\hline 
\hline \\[-1.8ex] 
 & \multicolumn{3}{c}{\textit{Dependent variable:}} \\ 
\cline{2-4} 
\\[-1.8ex] & \multicolumn{3}{c}{Sharedness} \\ 
\\[-1.8ex] & (1) & (2) & (3)\\ 
\hline \\[-1.8ex] 
 Ministries Dyad & $-$1.016$^{***}$ & $-$1.481$^{***}$ & $-$1.481$^{***}$ \\ 
  & (0.040) & (0.125) & (0.119) \\ 
  & & & \\ 
 Ministries Difference & 0.523$^{***}$ & 0.031 & 0.030 \\ 
  & (0.177) & (0.346) & (0.329) \\ 
  & & & \\ 
 Ministries Difference * Ministries Dyad & $-$2.292$^{***}$ & $-$1.515$^{***}$ & $-$1.517$^{***}$ \\ 
  & (0.284) & (0.562) & (0.534) \\ 
  & & & \\ 
 Issue Salience & 7.173$^{***}$ & 5.088$^{***}$ & 2.540$^{***}$ \\ 
  & (2.174) & (0.883) & (0.928) \\ 
  & & & \\ 
 Policy Conflict &  & 0.010 & $-$0.029 \\ 
  &  & (0.132) & (0.141) \\ 
  & & & \\ 
 Policy Conflict * Issue Salience &  &  & 2.848$^{**}$ \\ 
  &  &  & (1.120) \\ 
  & & & \\ 
 Denmark & $-$0.363$^{***}$ & $-$0.349$^{***}$ & $-$0.345$^{***}$ \\ 
  & (0.018) & (0.040) & (0.039) \\ 
  & & & \\ 
 Netherlands & $-$1.321$^{***}$ & $-$1.304$^{***}$ & $-$1.307$^{***}$ \\ 
  & (0.008) & (0.028) & (0.028) \\ 
  & & & \\ 
 Constant & 0.559$^{***}$ & 0.945$^{***}$ & 0.981$^{***}$ \\ 
  & (0.015) & (0.049) & (0.054) \\ 
  & & & \\ 
\hline \\[-1.8ex] 
Observations & 3,919 & 2,681 & 2,681 \\ 
Log Likelihood & $-$1,842.227 & $-$1,305.862 & $-$1,305.268 \\ 
Akaike Inf. Crit. & 3,698.454 & 2,627.724 & 2,628.536 \\ 
\hline 
\hline \\[-1.8ex] 
\textit{Note:}  & \multicolumn{3}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\ 
\end{tabular} 
\end{table} 

===============================================================================
                                                     Dependent variable:       
                                               --------------------------------
                                                          Sharedness           
                                                  (1)        (2)        (3)    
-------------------------------------------------------------------------------
Ministries Dyad                                -1.111***  -1.664***  -1.672*** 
                                                (0.039)    (0.071)    (0.076)  
                                                                               
Ministries Difference                           0.462***    -0.125     -0.133  
                                                (0.093)    (0.111)    (0.095)  
                                                                               
Ministries Difference * Ministries Dyad        -2.317***  -1.525***  -1.522*** 
                                                (0.210)    (0.216)    (0.187)  
                                                                               
Issue Salience                                 10.215***   7.328***   4.364*** 
                                                (1.539)    (0.587)    (0.670)  
                                                                               
Policy Conflict                                             -0.066     -0.112  
                                                           (0.098)    (0.079)  
                                                                               
Policy Conflict * Issue Salience                                      3.393**  
                                                                      (1.339)  
                                                                               
countryDK                                      -0.386***  -0.347***  -0.339*** 
                                                (0.020)    (0.056)    (0.052)  
                                                                               
countryNL                                      -1.412***  -1.447***  -1.454*** 
                                                (0.043)    (0.053)    (0.053)  
                                                                               
majorCivil Rights                                0.637      0.558      0.544   
                                                (1.051)    (1.063)    (1.033)  
                                                                               
majorHealth                                      -0.231     -0.298     -0.294  
                                                (0.701)    (0.623)    (0.602)  
                                                                               
majorAgriculture                                 0.196      0.064      0.062   
                                                (1.059)    (0.949)    (0.933)  
                                                                               
majorLabor                                       0.079      0.060      0.075   
                                                (0.787)    (0.722)    (0.698)  
                                                                               
majorEducation                                   -0.181     -0.631     -0.613  
                                                (0.663)    (0.410)    (0.384)  
                                                                               
majorEnvironment                                 0.964      0.921      0.930   
                                                (1.098)    (0.991)    (0.969)  
                                                                               
majorEnergy                                      0.629      1.117      1.131   
                                                (0.896)    (0.921)    (0.900)  
                                                                               
majorImmigration                               -2.820***  -2.233***  -2.485*** 
                                                (0.439)    (0.748)    (0.884)  
                                                                               
majorTransportation                              -0.087                        
                                                (0.733)                        
                                                                               
majorLaw and Crime                               0.885      0.813      0.830   
                                                (0.946)    (0.898)    (0.869)  
                                                                               
majorSocial Welfare                              -0.018     0.089      0.114   
                                                (0.849)    (0.940)    (0.905)  
                                                                               
majorHousing                                     0.214      0.213      0.219   
                                                (0.544)    (0.751)    (0.732)  
                                                                               
majorDomestic Commerce                           0.491      0.499      0.515   
                                                (0.386)    (0.378)    (0.362)  
                                                                               
majorDefense                                     -0.195     -0.515     -0.501  
                                                (0.897)    (0.666)    (0.632)  
                                                                               
majorTechnology                                  0.541                         
                                                (0.622)                        
                                                                               
majorForeign Trade                              1.116**    1.061***   1.052*** 
                                                (0.533)    (0.226)    (0.215)  
                                                                               
majorInternational Affairs                      1.073**    1.053***   1.060*** 
                                                (0.424)    (0.393)    (0.365)  
                                                                               
majorGovernment Operations                       0.605      1.225      1.243   
                                                (0.788)    (0.977)    (0.949)  
                                                                               
majorPublic Lands                                0.448      0.341      0.342   
                                                (0.814)    (1.142)    (1.118)  
                                                                               
majorCulture                                     0.938                         
                                                (0.695)                        
                                                                               
majorState and Local Government Administration   0.160                         
                                                (0.738)                        
                                                                               
majorGerman Reunification                        0.434                         
                                                (0.735)                        
                                                                               
Constant                                         0.224      0.860      0.901   
                                                (0.802)    (0.681)    (0.675)  
                                                                               
-------------------------------------------------------------------------------
Observations                                     3,919      2,681      2,681   
Log Likelihood                                 -1,759.997 -1,225.175 -1,224.302
Akaike Inf. Crit.                              3,577.994  2,500.350  2,500.604 
===============================================================================
Note:                                               *p<0.1; **p<0.05; ***p<0.01

% Table created by stargazer v.5.2.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Di, Mai 31, 2022 - 10:58:37
\begin{table}[!htbp] \centering 
  \caption{} 
  \label{} 
\begin{tabular}{@{\extracolsep{5pt}}lccc} 
\\[-1.8ex]\hline 
\hline \\[-1.8ex] 
 & \multicolumn{3}{c}{\textit{Dependent variable:}} \\ 
\cline{2-4} 
\\[-1.8ex] & \multicolumn{3}{c}{Sharedness} \\ 
\\[-1.8ex] & (1) & (2) & (3)\\ 
\hline \\[-1.8ex] 
 Ministries Dyad & $-$1.111$^{***}$ & $-$1.664$^{***}$ & $-$1.672$^{***}$ \\ 
  & (0.039) & (0.071) & (0.076) \\ 
  & & & \\ 
 Ministries Difference & 0.462$^{***}$ & $-$0.125 & $-$0.133 \\ 
  & (0.093) & (0.111) & (0.095) \\ 
  & & & \\ 
 Ministries Difference * Ministries Dyad & $-$2.317$^{***}$ & $-$1.525$^{***}$ & $-$1.522$^{***}$ \\ 
  & (0.210) & (0.216) & (0.187) \\ 
  & & & \\ 
 Issue Salience & 10.215$^{***}$ & 7.328$^{***}$ & 4.364$^{***}$ \\ 
  & (1.539) & (0.587) & (0.670) \\ 
  & & & \\ 
 Policy Conflict &  & $-$0.066 & $-$0.112 \\ 
  &  & (0.098) & (0.079) \\ 
  & & & \\ 
 Policy Conflict * Issue Salience &  &  & 3.393$^{**}$ \\ 
  &  &  & (1.339) \\ 
  & & & \\ 
 countryDK & $-$0.386$^{***}$ & $-$0.347$^{***}$ & $-$0.339$^{***}$ \\ 
  & (0.020) & (0.056) & (0.052) \\ 
  & & & \\ 
 countryNL & $-$1.412$^{***}$ & $-$1.447$^{***}$ & $-$1.454$^{***}$ \\ 
  & (0.043) & (0.053) & (0.053) \\ 
  & & & \\ 
 majorCivil Rights & 0.637 & 0.558 & 0.544 \\ 
  & (1.051) & (1.063) & (1.033) \\ 
  & & & \\ 
 majorHealth & $-$0.231 & $-$0.298 & $-$0.294 \\ 
  & (0.701) & (0.623) & (0.602) \\ 
  & & & \\ 
 majorAgriculture & 0.196 & 0.064 & 0.062 \\ 
  & (1.059) & (0.949) & (0.933) \\ 
  & & & \\ 
 majorLabor & 0.079 & 0.060 & 0.075 \\ 
  & (0.787) & (0.722) & (0.698) \\ 
  & & & \\ 
 majorEducation & $-$0.181 & $-$0.631 & $-$0.613 \\ 
  & (0.663) & (0.410) & (0.384) \\ 
  & & & \\ 
 majorEnvironment & 0.964 & 0.921 & 0.930 \\ 
  & (1.098) & (0.991) & (0.969) \\ 
  & & & \\ 
 majorEnergy & 0.629 & 1.117 & 1.131 \\ 
  & (0.896) & (0.921) & (0.900) \\ 
  & & & \\ 
 majorImmigration & $-$2.820$^{***}$ & $-$2.233$^{***}$ & $-$2.485$^{***}$ \\ 
  & (0.439) & (0.748) & (0.884) \\ 
  & & & \\ 
 majorTransportation & $-$0.087 &  &  \\ 
  & (0.733) &  &  \\ 
  & & & \\ 
 majorLaw and Crime & 0.885 & 0.813 & 0.830 \\ 
  & (0.946) & (0.898) & (0.869) \\ 
  & & & \\ 
 majorSocial Welfare & $-$0.018 & 0.089 & 0.114 \\ 
  & (0.849) & (0.940) & (0.905) \\ 
  & & & \\ 
 majorHousing & 0.214 & 0.213 & 0.219 \\ 
  & (0.544) & (0.751) & (0.732) \\ 
  & & & \\ 
 majorDomestic Commerce & 0.491 & 0.499 & 0.515 \\ 
  & (0.386) & (0.378) & (0.362) \\ 
  & & & \\ 
 majorDefense & $-$0.195 & $-$0.515 & $-$0.501 \\ 
  & (0.897) & (0.666) & (0.632) \\ 
  & & & \\ 
 majorTechnology & 0.541 &  &  \\ 
  & (0.622) &  &  \\ 
  & & & \\ 
 majorForeign Trade & 1.116$^{**}$ & 1.061$^{***}$ & 1.052$^{***}$ \\ 
  & (0.533) & (0.226) & (0.215) \\ 
  & & & \\ 
 majorInternational Affairs & 1.073$^{**}$ & 1.053$^{***}$ & 1.060$^{***}$ \\ 
  & (0.424) & (0.393) & (0.365) \\ 
  & & & \\ 
 majorGovernment Operations & 0.605 & 1.225 & 1.243 \\ 
  & (0.788) & (0.977) & (0.949) \\ 
  & & & \\ 
 majorPublic Lands & 0.448 & 0.341 & 0.342 \\ 
  & (0.814) & (1.142) & (1.118) \\ 
  & & & \\ 
 majorCulture & 0.938 &  &  \\ 
  & (0.695) &  &  \\ 
  & & & \\ 
 majorState and Local Government Administration & 0.160 &  &  \\ 
  & (0.738) &  &  \\ 
  & & & \\ 
 majorGerman Reunification & 0.434 &  &  \\ 
  & (0.735) &  &  \\ 
  & & & \\ 
 Constant & 0.224 & 0.860 & 0.901 \\ 
  & (0.802) & (0.681) & (0.675) \\ 
  & & & \\ 
\hline \\[-1.8ex] 
Observations & 3,919 & 2,681 & 2,681 \\ 
Log Likelihood & $-$1,759.997 & $-$1,225.175 & $-$1,224.302 \\ 
Akaike Inf. Crit. & 3,577.994 & 2,500.350 & 2,500.604 \\ 
\hline 
\hline \\[-1.8ex] 
\textit{Note:}  & \multicolumn{3}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\ 
\end{tabular} 
\end{table} 

========================================================================
                                              Dependent variable:       
                                        --------------------------------
                                                   Sharedness           
                                           (1)        (2)        (3)    
------------------------------------------------------------------------
Ministries Dyad                           -0.984     -0.943     -0.897  
                                         (0.898)    (1.439)    (1.428)  
                                                                        
Ministries Difference                     -0.486     -0.219     -0.048  
                                         (2.517)    (4.540)    (4.533)  
                                                                        
Ministries Difference * Ministries Dyad   -0.009     -1.152     -1.403  
                                         (3.749)    (6.315)    (6.315)  
                                                                        
Issue Salience                           7.194***   5.008***    2.835   
                                         (2.220)    (1.875)    (2.327)  
                                                                        
Policy Conflict                                      0.028      -0.005  
                                                    (0.118)    (0.124)  
                                                                        
Policy Conflict * Issue Salience                                2.401*  
                                                               (1.263)  
                                                                        
cabinetBalkenende II                      0.083      0.102      0.095   
                                         (0.083)    (0.180)    (0.179)  
                                                                        
cabinetBalkenende IV                    -0.332***  -0.209***  -0.206*** 
                                         (0.051)    (0.077)    (0.077)  
                                                                        
cabinetFogh Rasmussen I                  0.891***   0.880***   0.897*** 
                                         (0.144)    (0.228)    (0.236)  
                                                                        
cabinetFogh Rasmussen II                 0.600***   0.549***   0.570*** 
                                         (0.088)    (0.123)    (0.133)  
                                                                        
cabinetFogh Rasmussen III                0.479***   0.424***   0.439**  
                                         (0.088)    (0.165)    (0.172)  
                                                                        
cabinetKok I                             0.089***  -0.129***  -0.125*** 
                                         (0.025)    (0.044)    (0.044)  
                                                                        
cabinetKok II                            -0.145**  -0.342***  -0.339*** 
                                         (0.060)    (0.107)    (0.107)  
                                                                        
cabinetMerkel I                          1.153***   0.893***   0.888*** 
                                         (0.231)    (0.328)    (0.326)  
                                                                        
cabinetMerkel II                         0.977***   0.943***   0.961*** 
                                         (0.143)    (0.205)    (0.214)  
                                                                        
cabinetMerkel III                        1.214***   1.095***   1.101*** 
                                         (0.093)    (0.130)    (0.132)  
                                                                        
cabinetNyrup Rasmussen III                0.104      0.345      0.388   
                                         (0.340)    (0.479)    (0.488)  
                                                                        
cabinetNyrup Rasmussen IV                 0.368      0.641      0.665   
                                         (0.340)    (0.477)    (0.487)  
                                                                        
cabinetRutte I                            -0.215    -0.557*    -0.559** 
                                         (0.203)    (0.286)    (0.284)  
                                                                        
cabinetRutte II                          -0.368*   -0.801***  -0.804*** 
                                         (0.203)    (0.284)    (0.282)  
                                                                        
cabinetSchröder II                        0.518      0.817      0.855   
                                         (0.426)    (0.610)    (0.620)  
                                                                        
Constant                                  -0.818     -0.585     -0.591  
                                         (0.593)    (0.975)    (0.972)  
                                                                        
------------------------------------------------------------------------
Observations                              3,919      2,681      2,681   
Log Likelihood                          -1,835.236 -1,300.333 -1,299.956
Akaike Inf. Crit.                       3,710.473  2,642.666  2,643.913 
========================================================================
Note:                                        *p<0.1; **p<0.05; ***p<0.01

% Table created by stargazer v.5.2.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Di, Mai 31, 2022 - 10:58:39
\begin{table}[!htbp] \centering 
  \caption{} 
  \label{} 
\begin{tabular}{@{\extracolsep{5pt}}lccc} 
\\[-1.8ex]\hline 
\hline \\[-1.8ex] 
 & \multicolumn{3}{c}{\textit{Dependent variable:}} \\ 
\cline{2-4} 
\\[-1.8ex] & \multicolumn{3}{c}{Sharedness} \\ 
\\[-1.8ex] & (1) & (2) & (3)\\ 
\hline \\[-1.8ex] 
 Ministries Dyad & $-$0.984 & $-$0.943 & $-$0.897 \\ 
  & (0.898) & (1.439) & (1.428) \\ 
  & & & \\ 
 Ministries Difference & $-$0.486 & $-$0.219 & $-$0.048 \\ 
  & (2.517) & (4.540) & (4.533) \\ 
  & & & \\ 
 Ministries Difference * Ministries Dyad & $-$0.009 & $-$1.152 & $-$1.403 \\ 
  & (3.749) & (6.315) & (6.315) \\ 
  & & & \\ 
 Issue Salience & 7.194$^{***}$ & 5.008$^{***}$ & 2.835 \\ 
  & (2.220) & (1.875) & (2.327) \\ 
  & & & \\ 
 Policy Conflict &  & 0.028 & $-$0.005 \\ 
  &  & (0.118) & (0.124) \\ 
  & & & \\ 
 Policy Conflict * Issue Salience &  &  & 2.401$^{*}$ \\ 
  &  &  & (1.263) \\ 
  & & & \\ 
 cabinetBalkenende II & 0.083 & 0.102 & 0.095 \\ 
  & (0.083) & (0.180) & (0.179) \\ 
  & & & \\ 
 cabinetBalkenende IV & $-$0.332$^{***}$ & $-$0.209$^{***}$ & $-$0.206$^{***}$ \\ 
  & (0.051) & (0.077) & (0.077) \\ 
  & & & \\ 
 cabinetFogh Rasmussen I & 0.891$^{***}$ & 0.880$^{***}$ & 0.897$^{***}$ \\ 
  & (0.144) & (0.228) & (0.236) \\ 
  & & & \\ 
 cabinetFogh Rasmussen II & 0.600$^{***}$ & 0.549$^{***}$ & 0.570$^{***}$ \\ 
  & (0.088) & (0.123) & (0.133) \\ 
  & & & \\ 
 cabinetFogh Rasmussen III & 0.479$^{***}$ & 0.424$^{***}$ & 0.439$^{**}$ \\ 
  & (0.088) & (0.165) & (0.172) \\ 
  & & & \\ 
 cabinetKok I & 0.089$^{***}$ & $-$0.129$^{***}$ & $-$0.125$^{***}$ \\ 
  & (0.025) & (0.044) & (0.044) \\ 
  & & & \\ 
 cabinetKok II & $-$0.145$^{**}$ & $-$0.342$^{***}$ & $-$0.339$^{***}$ \\ 
  & (0.060) & (0.107) & (0.107) \\ 
  & & & \\ 
 cabinetMerkel I & 1.153$^{***}$ & 0.893$^{***}$ & 0.888$^{***}$ \\ 
  & (0.231) & (0.328) & (0.326) \\ 
  & & & \\ 
 cabinetMerkel II & 0.977$^{***}$ & 0.943$^{***}$ & 0.961$^{***}$ \\ 
  & (0.143) & (0.205) & (0.214) \\ 
  & & & \\ 
 cabinetMerkel III & 1.214$^{***}$ & 1.095$^{***}$ & 1.101$^{***}$ \\ 
  & (0.093) & (0.130) & (0.132) \\ 
  & & & \\ 
 cabinetNyrup Rasmussen III & 0.104 & 0.345 & 0.388 \\ 
  & (0.340) & (0.479) & (0.488) \\ 
  & & & \\ 
 cabinetNyrup Rasmussen IV & 0.368 & 0.641 & 0.665 \\ 
  & (0.340) & (0.477) & (0.487) \\ 
  & & & \\ 
 cabinetRutte I & $-$0.215 & $-$0.557$^{*}$ & $-$0.559$^{**}$ \\ 
  & (0.203) & (0.286) & (0.284) \\ 
  & & & \\ 
 cabinetRutte II & $-$0.368$^{*}$ & $-$0.801$^{***}$ & $-$0.804$^{***}$ \\ 
  & (0.203) & (0.284) & (0.282) \\ 
  & & & \\ 
 cabinetSchröder II & 0.518 & 0.817 & 0.855 \\ 
  & (0.426) & (0.610) & (0.620) \\ 
  & & & \\ 
 Constant & $-$0.818 & $-$0.585 & $-$0.591 \\ 
  & (0.593) & (0.975) & (0.972) \\ 
  & & & \\ 
\hline \\[-1.8ex] 
Observations & 3,919 & 2,681 & 2,681 \\ 
Log Likelihood & $-$1,835.236 & $-$1,300.333 & $-$1,299.956 \\ 
Akaike Inf. Crit. & 3,710.473 & 2,642.666 & 2,643.913 \\ 
\hline 
\hline \\[-1.8ex] 
\textit{Note:}  & \multicolumn{3}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\ 
\end{tabular} 
\end{table} 

============================================================================================================
                                                                    Dependent variable:                     
                                               -------------------------------------------------------------
                                                                        Sharedness                          
                                                  (1)        (2)       (3)       (4)        (5)       (6)   
------------------------------------------------------------------------------------------------------------
Ministries Dyad                                 -0.292**  -0.499**  -0.499**  -0.359***  -0.613*** -0.613***
                                                (0.131)    (0.198)   (0.196)   (0.108)    (0.138)   (0.135) 
                                                                                                            
Ministries Difference                            0.638      0.406     0.408     0.531      0.257     0.263  
                                                (0.548)    (0.726)   (0.716)   (0.509)    (0.565)   (0.550) 
                                                                                                            
Ministries Difference * Ministries Dyad         -1.576*    -1.201    -1.207    -1.480*    -1.117    -1.129  
                                                (0.860)    (1.156)   (1.142)   (0.827)    (0.930)   (0.908) 
                                                                                                            
Issue Salience                                  5.080***  3.640***   2.099**   7.104***  5.013***  2.994*** 
                                                (1.077)    (0.821)   (0.829)   (0.910)    (0.846)   (0.728) 
                                                                                                            
Policy Conflict                                            -0.021    -0.039               -0.069    -0.093* 
                                                           (0.070)   (0.077)              (0.052)   (0.053) 
                                                                                                            
Policy Conflict * Issue Salience                                     1.734**                       2.255*** 
                                                                     (0.814)                        (0.316) 
                                                                                                            
Denmark                                        -0.277***  -0.283*** -0.282*** -0.295***  -0.292*** -0.290***
                                                (0.019)    (0.041)   (0.041)   (0.028)    (0.038)   (0.038) 
                                                                                                            
Netherlands                                    -0.948***  -0.936*** -0.938*** -0.988***  -1.005*** -1.009***
                                                (0.070)    (0.086)   (0.086)   (0.090)    (0.100)   (0.099) 
                                                                                                            
majorCivil Rights                                                               0.305      0.280     0.269  
                                                                               (0.459)    (0.464)   (0.450) 
                                                                                                            
majorHealth                                                                     -0.068    -0.109    -0.111  
                                                                               (0.327)    (0.305)   (0.299) 
                                                                                                            
majorAgriculture                                                                0.150      0.074     0.070  
                                                                               (0.375)    (0.356)   (0.351) 
                                                                                                            
majorLabor                                                                      0.058      0.035     0.040  
                                                                               (0.335)    (0.330)   (0.325) 
                                                                                                            
majorEducation                                                                  0.021     -0.130    -0.123  
                                                                               (0.257)    (0.201)   (0.199) 
                                                                                                            
majorEnvironment                                                                0.494      0.495     0.497  
                                                                               (0.456)    (0.411)   (0.406) 
                                                                                                            
majorEnergy                                                                     0.279     0.562*    0.567*  
                                                                               (0.296)    (0.312)   (0.307) 
                                                                                                            
majorImmigration                                                              -1.335***  -0.890**  -0.988** 
                                                                               (0.266)    (0.356)   (0.391) 
                                                                                                            
majorTransportation                                                             0.133                       
                                                                               (0.243)                      
                                                                                                            
majorLaw and Crime                                                              0.450      0.434     0.440  
                                                                               (0.334)    (0.315)   (0.307) 
                                                                                                            
majorSocial Welfare                                                             0.087      0.144     0.152  
                                                                               (0.268)    (0.332)   (0.326) 
                                                                                                            
majorHousing                                                                    0.063      0.014     0.015  
                                                                               (0.240)    (0.335)   (0.330) 
                                                                                                            
majorDomestic Commerce                                                         0.265***  0.270***  0.275*** 
                                                                               (0.092)    (0.087)   (0.091) 
                                                                                                            
majorDefense                                                                    0.040     -0.067    -0.064  
                                                                               (0.324)    (0.251)   (0.241) 
                                                                                                            
majorTechnology                                                                 0.297*                      
                                                                               (0.163)                      
                                                                                                            
majorForeign Trade                                                             0.585***  0.573***  0.566*** 
                                                                               (0.159)    (0.058)   (0.058) 
                                                                                                            
majorInternational Affairs                                                     0.498***  0.512***  0.515*** 
                                                                               (0.112)    (0.115)   (0.110) 
                                                                                                            
majorGovernment Operations                                                      0.277    1.043***  1.053*** 
                                                                               (0.266)    (0.251)   (0.244) 
                                                                                                            
majorPublic Lands                                                               0.236      0.411     0.410  
                                                                               (0.247)    (0.793)   (0.786) 
                                                                                                            
majorCulture                                                                   1.096***                     
                                                                               (0.188)                      
                                                                                                            
majorState and Local Government Administration                                  0.372                       
                                                                               (0.250)                      
                                                                                                            
majorGerman Reunification                                                       0.105                       
                                                                               (0.263)                      
                                                                                                            
Constant                                       -0.376***  -0.176**  -0.159**   -0.542**   -0.205    -0.183  
                                                (0.090)    (0.073)   (0.075)   (0.231)    (0.230)   (0.223) 
                                                                                                            
------------------------------------------------------------------------------------------------------------
Observations                                     3,919      2,681     2,681     3,919      2,681     2,681  
R2                                               0.118      0.110     0.110     0.161      0.184     0.185  
Log Likelihood                                 11,106.090 7,370.304 7,371.069 11,158.360 7,430.673 7,431.966
============================================================================================================
Note:                                                                            *p<0.1; **p<0.05; ***p<0.01

% Table created by stargazer v.5.2.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Di, Mai 31, 2022 - 10:58:45
\begin{table}[!htbp] \centering 
  \caption{} 
  \label{} 
\begin{tabular}{@{\extracolsep{5pt}}lcccccc} 
\\[-1.8ex]\hline 
\hline \\[-1.8ex] 
 & \multicolumn{6}{c}{\textit{Dependent variable:}} \\ 
\cline{2-7} 
\\[-1.8ex] & \multicolumn{6}{c}{Sharedness} \\ 
\\[-1.8ex] & (1) & (2) & (3) & (4) & (5) & (6)\\ 
\hline \\[-1.8ex] 
 Ministries Dyad & $-$0.292$^{**}$ & $-$0.499$^{**}$ & $-$0.499$^{**}$ & $-$0.359$^{***}$ & $-$0.613$^{***}$ & $-$0.613$^{***}$ \\ 
  & (0.131) & (0.198) & (0.196) & (0.108) & (0.138) & (0.135) \\ 
  & & & & & & \\ 
 Ministries Difference & 0.638 & 0.406 & 0.408 & 0.531 & 0.257 & 0.263 \\ 
  & (0.548) & (0.726) & (0.716) & (0.509) & (0.565) & (0.550) \\ 
  & & & & & & \\ 
 Ministries Difference * Ministries Dyad & $-$1.576$^{*}$ & $-$1.201 & $-$1.207 & $-$1.480$^{*}$ & $-$1.117 & $-$1.129 \\ 
  & (0.860) & (1.156) & (1.142) & (0.827) & (0.930) & (0.908) \\ 
  & & & & & & \\ 
 Issue Salience & 5.080$^{***}$ & 3.640$^{***}$ & 2.099$^{**}$ & 7.104$^{***}$ & 5.013$^{***}$ & 2.994$^{***}$ \\ 
  & (1.077) & (0.821) & (0.829) & (0.910) & (0.846) & (0.728) \\ 
  & & & & & & \\ 
 Policy Conflict &  & $-$0.021 & $-$0.039 &  & $-$0.069 & $-$0.093$^{*}$ \\ 
  &  & (0.070) & (0.077) &  & (0.052) & (0.053) \\ 
  & & & & & & \\ 
 Policy Conflict * Issue Salience &  &  & 1.734$^{**}$ &  &  & 2.255$^{***}$ \\ 
  &  &  & (0.814) &  &  & (0.316) \\ 
  & & & & & & \\ 
 Denmark & $-$0.277$^{***}$ & $-$0.283$^{***}$ & $-$0.282$^{***}$ & $-$0.295$^{***}$ & $-$0.292$^{***}$ & $-$0.290$^{***}$ \\ 
  & (0.019) & (0.041) & (0.041) & (0.028) & (0.038) & (0.038) \\ 
  & & & & & & \\ 
 Netherlands & $-$0.948$^{***}$ & $-$0.936$^{***}$ & $-$0.938$^{***}$ & $-$0.988$^{***}$ & $-$1.005$^{***}$ & $-$1.009$^{***}$ \\ 
  & (0.070) & (0.086) & (0.086) & (0.090) & (0.100) & (0.099) \\ 
  & & & & & & \\ 
 majorCivil Rights &  &  &  & 0.305 & 0.280 & 0.269 \\ 
  &  &  &  & (0.459) & (0.464) & (0.450) \\ 
  & & & & & & \\ 
 majorHealth &  &  &  & $-$0.068 & $-$0.109 & $-$0.111 \\ 
  &  &  &  & (0.327) & (0.305) & (0.299) \\ 
  & & & & & & \\ 
 majorAgriculture &  &  &  & 0.150 & 0.074 & 0.070 \\ 
  &  &  &  & (0.375) & (0.356) & (0.351) \\ 
  & & & & & & \\ 
 majorLabor &  &  &  & 0.058 & 0.035 & 0.040 \\ 
  &  &  &  & (0.335) & (0.330) & (0.325) \\ 
  & & & & & & \\ 
 majorEducation &  &  &  & 0.021 & $-$0.130 & $-$0.123 \\ 
  &  &  &  & (0.257) & (0.201) & (0.199) \\ 
  & & & & & & \\ 
 majorEnvironment &  &  &  & 0.494 & 0.495 & 0.497 \\ 
  &  &  &  & (0.456) & (0.411) & (0.406) \\ 
  & & & & & & \\ 
 majorEnergy &  &  &  & 0.279 & 0.562$^{*}$ & 0.567$^{*}$ \\ 
  &  &  &  & (0.296) & (0.312) & (0.307) \\ 
  & & & & & & \\ 
 majorImmigration &  &  &  & $-$1.335$^{***}$ & $-$0.890$^{**}$ & $-$0.988$^{**}$ \\ 
  &  &  &  & (0.266) & (0.356) & (0.391) \\ 
  & & & & & & \\ 
 majorTransportation &  &  &  & 0.133 &  &  \\ 
  &  &  &  & (0.243) &  &  \\ 
  & & & & & & \\ 
 majorLaw and Crime &  &  &  & 0.450 & 0.434 & 0.440 \\ 
  &  &  &  & (0.334) & (0.315) & (0.307) \\ 
  & & & & & & \\ 
 majorSocial Welfare &  &  &  & 0.087 & 0.144 & 0.152 \\ 
  &  &  &  & (0.268) & (0.332) & (0.326) \\ 
  & & & & & & \\ 
 majorHousing &  &  &  & 0.063 & 0.014 & 0.015 \\ 
  &  &  &  & (0.240) & (0.335) & (0.330) \\ 
  & & & & & & \\ 
 majorDomestic Commerce &  &  &  & 0.265$^{***}$ & 0.270$^{***}$ & 0.275$^{***}$ \\ 
  &  &  &  & (0.092) & (0.087) & (0.091) \\ 
  & & & & & & \\ 
 majorDefense &  &  &  & 0.040 & $-$0.067 & $-$0.064 \\ 
  &  &  &  & (0.324) & (0.251) & (0.241) \\ 
  & & & & & & \\ 
 majorTechnology &  &  &  & 0.297$^{*}$ &  &  \\ 
  &  &  &  & (0.163) &  &  \\ 
  & & & & & & \\ 
 majorForeign Trade &  &  &  & 0.585$^{***}$ & 0.573$^{***}$ & 0.566$^{***}$ \\ 
  &  &  &  & (0.159) & (0.058) & (0.058) \\ 
  & & & & & & \\ 
 majorInternational Affairs &  &  &  & 0.498$^{***}$ & 0.512$^{***}$ & 0.515$^{***}$ \\ 
  &  &  &  & (0.112) & (0.115) & (0.110) \\ 
  & & & & & & \\ 
 majorGovernment Operations &  &  &  & 0.277 & 1.043$^{***}$ & 1.053$^{***}$ \\ 
  &  &  &  & (0.266) & (0.251) & (0.244) \\ 
  & & & & & & \\ 
 majorPublic Lands &  &  &  & 0.236 & 0.411 & 0.410 \\ 
  &  &  &  & (0.247) & (0.793) & (0.786) \\ 
  & & & & & & \\ 
 majorCulture &  &  &  & 1.096$^{***}$ &  &  \\ 
  &  &  &  & (0.188) &  &  \\ 
  & & & & & & \\ 
 majorState and Local Government Administration &  &  &  & 0.372 &  &  \\ 
  &  &  &  & (0.250) &  &  \\ 
  & & & & & & \\ 
 majorGerman Reunification &  &  &  & 0.105 &  &  \\ 
  &  &  &  & (0.263) &  &  \\ 
  & & & & & & \\ 
 Constant & $-$0.376$^{***}$ & $-$0.176$^{**}$ & $-$0.159$^{**}$ & $-$0.542$^{**}$ & $-$0.205 & $-$0.183 \\ 
  & (0.090) & (0.073) & (0.075) & (0.231) & (0.230) & (0.223) \\ 
  & & & & & & \\ 
\hline \\[-1.8ex] 
Observations & 3,919 & 2,681 & 2,681 & 3,919 & 2,681 & 2,681 \\ 
R$^{2}$ & 0.118 & 0.110 & 0.110 & 0.161 & 0.184 & 0.185 \\ 
Log Likelihood & 11,106.090 & 7,370.304 & 7,371.069 & 11,158.360 & 7,430.673 & 7,431.966 \\ 
\hline 
\hline \\[-1.8ex] 
\textit{Note:}  & \multicolumn{6}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\ 
\end{tabular} 
\end{table} 
Adding missing grouping variables: `country`
\begin{table}[!htbp] \centering \renewcommand*{\arraystretch}{1.1}\caption{Summary Statistics}\resizebox{\textwidth}{!}{
\begin{tabular}{lrrrrr}
\hline
\hline
Variable & \multicolumn{1}{c}{mean} & \multicolumn{1}{c}{sd} & \multicolumn{1}{c}{min} & \multicolumn{1}{c}{med} & \multicolumn{1}{c}{max} \\ 
\hline
\multicolumn{6}{c}{Country: DE} \\ 
Sharedness & 0 & 0.309 & 0 & 0.2 & 1 \\ 
Ministries Dyad & 1 & 0 & 1 & 1 & 1 \\ 
Ministries Difference & 0 & 0.186 & 0.067 & 0.267 & 0.571 \\ 
Issue Salience & 0 & 0.013 & 0 & 0.004 & 0.13 \\ 
Policy Conflict & 1 & 0.536 & 0.011 & 0.808 & 2.086 \\ 
 &  &  &  &  &  \\ 
\multicolumn{6}{c}{Country: DK} \\ 
Sharedness & 0 & 0.3 & 0 & 0 & 0.998 \\ 
Ministries Dyad & 1 & 0 & 1 & 1 & 1 \\ 
Ministries Difference & 0 & 0.107 & 0.263 & 0.333 & 0.5 \\ 
Issue Salience & 0 & 0.031 & 0 & 0 & 0.294 \\ 
Policy Conflict & 1 & 0.892 & 0 & 0.968 & 3.85 \\ 
 &  &  &  &  &  \\ 
\multicolumn{6}{c}{Country: NL} \\ 
Sharedness & 0 & 0.292 & 0 & 0 & 1 \\ 
Ministries Dyad & 1 & 0.175 & 0.385 & 0.692 & 1 \\ 
Ministries Difference & 0 & 0.143 & 0 & 0.154 & 0.538 \\ 
Issue Salience & 0 & 0.025 & 0 & 0.002 & 0.704 \\ 
Policy Conflict & 1 & 0.53 & 0.004 & 0.66 & 2.369\\ 
\hline
\hline
\end{tabular}
}
\end{table}
`summarise()` has grouped output by 'country'. You can override using the `.groups` argument.

